import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main{
    public static void main(String []args) throws IOException{
        BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
        String line=in.readLine();
        String s = new StringBuilder(line).reverse().toString();
        System.out.println(s);
    }
}